package com.serializetool;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;

public class Request implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 任务Id
     */
    private long taskId;
    /**
     * 全类名
     */
    private String className;

    private String methodName;
    /**
     * 参数类型
     */
    private String[] parameterTypes;
    /**
     * 所有参数
     */
    private Object[] parameters;

    private String magicNum;

    public long gettaskId() {
        return taskId;
    }
    public void settaskId(long taskId) {
        this.taskId = taskId;
    }
    public String getClassName() {
        return className;
    }
    public void setClassName(String className) {
        this.className = className;
    }
    public String getMethodName() {
        return methodName;
    }
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
    public String[] getParameterTypes() {
        return parameterTypes;
    }
    public void setParameterTypes(String[] parameterTypes) {
        this.parameterTypes = parameterTypes;
    }
    public Object[] getParameters() {
        return parameters;
    }
    public void setParameters(Object[] parameters) {
        this.parameters = parameters;
    }

    public long getTaskId() {
        return taskId;
    }

    public void setTaskId(long taskId) {
        this.taskId = taskId;
    }

    public String getMagicNum() {
        return magicNum;
    }

    public void setMagicNum(String magicNum) {
        this.magicNum = magicNum;
    }

    @Override
    public String toString() {
        return "Request{" +
                "taskId=" + taskId +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", parameterTypes=" + Arrays.toString(parameterTypes) +
                ", parameters=" + Arrays.toString(parameters) +
                ", magicNum='" + magicNum + '\'' +
                '}';
    }
}